//
//  PayViewController.m
//  yonghu
//
//  Created by 浪尖渝力 on 2018/1/18.
//  Copyright © 2018年 com.DJS. All rights reserved.
//

#import "PayViewController.h"
#import "PayView.h"
@interface PayViewController ()
@property(nonatomic,strong)PayView *aView;
@end

@implementation PayViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title=@"支付";
    
    _aView=[PayView new];
    [self.view addSubview:_aView];
    [_aView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.mas_equalTo(0);
    }];
    _aView.dic=_dic;
    _aView.ramekStr=_ramekStr;
    
    _aView.viewController=self;
    [self loaddAta];
}

-(void)loaddAta{
    NSNumber *dt_id=[_dic objectForKey:@"dt_id"];
    
    NSDictionary *userDic = [NSKeyedUnarchiver unarchiveObjectWithFile:_userModelFile];
    NSNumber *waiter_id1=[userDic objectForKey:@"user_id"];
    NSString *user_id=[NSString stringWithFormat:@"%@",waiter_id1];
    NSDictionary *dic=[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"%@",dt_id],@"dt_id",user_id,@"user_id", nil];
    [ZQTools AFNPostDataUrl:@"user/document/get_integral_message" Dict:dic andTableView:nil andViewController:self andSuccessBlock:^(id responseObject) {
        _aView.jiFenStr=responseObject;
        [_aView creatView];
    } anderrorBlock:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
